package com.ssy.lingxi.platform.manage.model.request.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 停用/启用/上架/下架 - 请求实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/17
 */
@Data
public class CommonStatusRequest {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空", groups = {CommonStatusRequest.Enable.class, CommonStatusRequest.Shelf.class})
    private Long id;

    @ApiModelProperty(value = "状态 0-无效 1-有效")
    @NotNull(message = "状态不能为空", groups = {CommonStatusRequest.Enable.class})
    private Integer enableStatus;

    @ApiModelProperty(value = "状态 1-待上架 2-已上架 3-已下架")
    @NotNull(message = "状态不能为空", groups = {CommonStatusRequest.Shelf.class})
    private Integer shelfStatus;

    public interface Enable {
    }

    public interface Shelf {
    }
}
